﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Xml.Linq;

namespace MyBBS.Data.Extensions
{
    public static class StringExtension
    {
        public static string ContentEncode(this string str)
        {
            if (str.IndexOf("\n", StringComparison.Ordinal) > -1)
            {
                str = str.Replace("\n", "<br/>");
            }

            return str;
        }
    }
}
